package com.example.onlinereadingsystem.demos.web.service;

import com.example.onlinereadingsystem.demos.web.dto.request.AddNovelParam;
import com.example.onlinereadingsystem.demos.web.dto.request.RemoveNovelParam;
import com.example.onlinereadingsystem.demos.web.dto.vo.ChapterContentVo;
import com.example.onlinereadingsystem.demos.web.dto.vo.ChapterListVo;
import com.example.onlinereadingsystem.demos.web.dto.vo.NovelReadingDetailVo;
import com.example.onlinereadingsystem.demos.web.util.Result;

import java.io.IOException;

/**
 * @Description 小说阅读模块服务接口
 * @Author ljm
 * @Date 2024/11/7
 */
public interface NovelReadingService {


    /**
     * @auther ljm
     * @create 2024/11/8
     * @describe 根据id获取章节具体内容
     */
    Result<ChapterContentVo> getChapterContent(String id) throws IOException;

    /**
     * @auther ljm
     * @create 2024/11/8
     * @describe 获取所有章节id列表
     */
    Result<ChapterListVo> getChapterList(String novelId, String chapterId);

}
